<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/common.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">common.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;sstream&gt;</code><br />
</div>
<p><a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ac51554cebbaae5040fd5bd3a55d1e6fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#ac51554cebbaae5040fd5bd3a55d1e6fe">setIdentity</a> (float *matrix)</td></tr>
<tr class="memdesc:ac51554cebbaae5040fd5bd3a55d1e6fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets an array representing a 4x4 matrix to the identity  <a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#ac51554cebbaae5040fd5bd3a55d1e6fe">更多...</a><br /></td></tr>
<tr class="separator:ac51554cebbaae5040fd5bd3a55d1e6fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb7d72950c8e6996d57551af6913b84e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aeb7d72950c8e6996d57551af6913b84e">multMatrix</a> (const float *left, const float *right, float *result)</td></tr>
<tr class="memdesc:aeb7d72950c8e6996d57551af6913b84e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs result = left * right  <a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aeb7d72950c8e6996d57551af6913b84e">更多...</a><br /></td></tr>
<tr class="separator:aeb7d72950c8e6996d57551af6913b84e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa02f956d22f815ef59104320d2645d69"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aa02f956d22f815ef59104320d2645d69">invertMatrix</a> (const float *matrix, float *inverse)</td></tr>
<tr class="memdesc:aa02f956d22f815ef59104320d2645d69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the inverse of a matrix  <a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aa02f956d22f815ef59104320d2645d69">更多...</a><br /></td></tr>
<tr class="separator:aa02f956d22f815ef59104320d2645d69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35f81c7e5d9512d1a577af2655f1ec5f"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a35f81c7e5d9512d1a577af2655f1ec5f"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a35f81c7e5d9512d1a577af2655f1ec5f">toString</a> (T input, std::string &amp;result)</td></tr>
<tr class="memdesc:a35f81c7e5d9512d1a577af2655f1ec5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper function for converting objects to strings (using operator&lt;&lt;)  <a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a35f81c7e5d9512d1a577af2655f1ec5f">更多...</a><br /></td></tr>
<tr class="separator:a35f81c7e5d9512d1a577af2655f1ec5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fce1bef213d646ea7ece16157c37bc0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a7fce1bef213d646ea7ece16157c37bc0">stringToLower</a> (std::string &amp;s)</td></tr>
<tr class="memdesc:a7fce1bef213d646ea7ece16157c37bc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts the passed string to lowercase in place  <a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a7fce1bef213d646ea7ece16157c37bc0">更多...</a><br /></td></tr>
<tr class="separator:a7fce1bef213d646ea7ece16157c37bc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Copyright (c) 2012, Texas A&amp;M University All rights reserved.</p>
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
<ul>
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
<li>Neither the name of Texas A&amp;M University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
</ul>
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
<p>The following software was written as part of a collaboration with the University of South Carolina, Interdisciplinary Mathematics Institute.</p>
<p>The set of simple common operations used throughout the project. </p><dl class="section author"><dt>作者</dt><dd>Yue Li and Matthew Hielsberg </dd></dl>
</div><h2 class="groupheader">函数说明</h2>
<a id="aa02f956d22f815ef59104320d2645d69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa02f956d22f815ef59104320d2645d69">&#9670;&nbsp;</a></span>invertMatrix()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool invertMatrix </td>
          <td>(</td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>matrix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>inverse</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Finds the inverse of a matrix </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">the</td><td>input 4x4 column-major matrix following OpenGL's format </td></tr>
    <tr><td class="paramname">the</td><td>output 4x4 column-major inverse matrix following OpenGL's format </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aeb7d72950c8e6996d57551af6913b84e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb7d72950c8e6996d57551af6913b84e">&#9670;&nbsp;</a></span>multMatrix()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void multMatrix </td>
          <td>(</td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>right</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs result = left * right </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">left</td><td>A pointer to memory representing at least MATRIX_SIZE elements </td></tr>
    <tr><td class="paramname">right</td><td>A pointer to memory representing at least MATRIX_SIZE elements </td></tr>
    <tr><td class="paramname">result</td><td>A pointer to memory representing at least MATRIX_SIZE elements. The output of left * right is stored in this matrix </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>前置条件</dt><dd>Assumes all pointers are valid. </dd></dl>

</div>
</div>
<a id="ac51554cebbaae5040fd5bd3a55d1e6fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac51554cebbaae5040fd5bd3a55d1e6fe">&#9670;&nbsp;</a></span>setIdentity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setIdentity </td>
          <td>(</td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets an array representing a 4x4 matrix to the identity </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">matrix</td><td>A pointer to memory representing at least MATRIX_SIZE elements </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>前置条件</dt><dd>Assumes the pointer is valid. </dd></dl>

</div>
</div>
<a id="a7fce1bef213d646ea7ece16157c37bc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fce1bef213d646ea7ece16157c37bc0">&#9670;&nbsp;</a></span>stringToLower()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void stringToLower </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts the passed string to lowercase in place </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>The string to be made lower. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a35f81c7e5d9512d1a577af2655f1ec5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35f81c7e5d9512d1a577af2655f1ec5f">&#9670;&nbsp;</a></span>toString()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void toString </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Helper function for converting objects to strings (using operator&lt;&lt;) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>The object to be converted </td></tr>
    <tr><td class="paramname">result</td><td>A reference to the string where the resulting string will be stored. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;{</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  std::stringstream ss;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  ss &lt;&lt; input;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  result = ss.str();</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_b812044310263d1df0acdcc34fa78063.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="dir_e7676f72fdf944a58a9890202aea4fdd.html">include</a></li><li class="navelem"><a class="el" href="dir_f36a0c0a6789487b19709622e8aaedff.html">pcl</a></li><li class="navelem"><a class="el" href="dir_dfd6ef21606ddfa5cd0b7ee0903ae9ec.html">apps</a></li><li class="navelem"><a class="el" href="dir_4eea226eade4b66d41c153c54681c108.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html">common.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
